package com.fortune.rainshine.feign.service;

import com.fortune.rainshine.config.FeignConfig;
import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinecommon.model.CustomerModel;
import com.fortune.rainshinecommon.query.CustomerQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "rain-shine-service",configuration = FeignConfig.class)
@Controller
public interface ICustomerFeign {
    @PostMapping("/customer/createCustomer")
    @ResponseBody
    MsgModel createCustomer(@RequestBody CustomerModel customerModel);
//
//    @PostMapping("/customer/customerList")
//    @ResponseBody
//    MsgModel customerList(@RequestBody CustomerQuery query);

    @PostMapping("/customer/updateCustomer")
    @ResponseBody
    MsgModel updateCustomer(@RequestBody CustomerModel customerModel);
}
